#!/bin/sh -e

export DESTDIR="$1"

cmake -B build \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=/usr/lib \
    -DBUILD_SHARED_LIBS=ON \
    -DUSE_NTLMCLIENT=OFF \
    -DCMAKE_BUILD_TYPE=Release

cmake --build   build
cmake --install build
